<h2>Create a new discussion</h2>
<% form_for [@project,@discussion] do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label "Discussion title:" %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>
<%= link_to 'Back', project_discussions_path %>